package com.example.myerp.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.myerp.pojo.S_reasonexact;
import com.example.myerp.service.S_reasonexactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author zhuxingyu
 * @since 2021-08-12
 */
@RestController
@RequestMapping("/purchase/s_reasonexact")
public class S_reasonexactController {
    @Autowired
    S_reasonexactService service;

    @RequestMapping("/selectvo")
    public IPage<S_reasonexact> selectvo(Long pageNum, Long pageSize) {
        return service.selectvo(pageNum, pageSize);
    }


    @RequestMapping("/addReson")
    public Integer s_reasonexactAdd(String reasonexact) {
        return service.s_reasonexactAdd(reasonexact);
    }

    @RequestMapping("/delReson")
    public Integer s_reasonexactdel(Long rctid) {
        return service.s_reasonexactdel(rctid);
    }

    @RequestMapping("/selectAll")
    public List<S_reasonexact> selectAll(){
       return service.selectAll();
    }


    @RequestMapping("/reasonList")
    public List<S_reasonexact> reasonList(){
        return service.reasonList();
    }




}
